import AutoImport from 'unplugin-auto-import/vite'
export default function createAutoImport() {
  return [
    AutoImport({
      imports: [
        'vue',
        'pinia',
        'uni-app'
      ],
      dirs: [//配置本地目录自动引入
        "./src/utils/.",
        "./src/store/modules/.",
        "./src/global/.",
      ],
      dts: "types/auto-import.d.ts", // 生成 `auto-import.d.ts` 全局声明
    }),

  ]
}
